package com.hs.android.fortress.net;

import java.io.IOException;

import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;

import com.google.gson.JsonObject;

public abstract class PostMethodCommand extends NetworkCommand{
	
	
	@Override
	public HttpResponse callMethod() throws ClientProtocolException, IOException {
		HttpClient client = new DefaultHttpClient();
		HttpPost post = makeHttpPost();
		
		return client.execute(post);
	}
	
	protected abstract HttpPost makeHttpPost() throws IOException;
	public abstract void setParams(Object params);
}
